package cn.org.itool.ws.framework.netty.message;

import lombok.Data;

import java.io.Serializable;

@Data
public class BizWsMessage implements Serializable {

    /**
     * 消息id
     * request | response
     */
    private Integer id;

    /**
     * 0～7
     * 0-request; 1-notify; 2-response; 3-push
     */
    private Integer type;

    /**
     * gzip 压缩标志位
     * 0-未压缩; 1-压缩
     */
    private Boolean compressGzip = false;

    /**
     * route压缩标志位
     * 0-未压缩; 1-压缩
     */
    private Boolean compressRoute = false;

    /**
     * 路由
     */
    private Object route;

    /**
     * 数据
     */
    private Object body;
}
